import { createApp } from 'vue'
import './style.css'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import ElementPlus from 'element-plus'; // 引入 Element Plus
import 'element-plus/dist/index.css'// 引入 Element Plus 样式
import 'element-plus/es/components/message/style/css'

import App from './App.vue'

import Particles from "@tsparticles/vue3";
import { loadSlim } from "@tsparticles/slim";

import router from '@/router/index'

const app = createApp(App)
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
}
app.use(ElementPlus)
app.use(router)
app.use(Particles as any, {
    init: async (engine: any) => {
        await loadSlim(engine);
    },
})
app.mount('#app')
